package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * HelpListId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class HelpListId implements java.io.Serializable {

	// Fields

	private String help;
	private String result;

	// Constructors

	/** default constructor */
	public HelpListId() {
	}

	/** full constructor */
	public HelpListId(String help, String result) {
		this.help = help;
		this.result = result;
	}

	// Property accessors

	@Column(name = "help", length = 16777215)
	public String getHelp() {
		return this.help;
	}

	public void setHelp(String help) {
		this.help = help;
	}

	@Column(name = "result", length = 16777215)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof HelpListId))
			return false;
		HelpListId castOther = (HelpListId) other;

		return ((this.getHelp() == castOther.getHelp()) || (this.getHelp() != null
				&& castOther.getHelp() != null && this.getHelp().equals(
				castOther.getHelp())))
				&& ((this.getResult() == castOther.getResult()) || (this
						.getResult() != null && castOther.getResult() != null && this
						.getResult().equals(castOther.getResult())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getHelp() == null ? 0 : this.getHelp().hashCode());
		result = 37 * result
				+ (getResult() == null ? 0 : this.getResult().hashCode());
		return result;
	}

}